<% form_remote_for :account, :url => { :action => 'add' } do |f| -%>
<h2>Create Account</h2>

<div class="row">
  <label>Name</label>
  <%= f.text_field :name, :class => 'field' %>
</div>

<div class="row">
  <label>Details</label>
  <%= f.text_field :details, :class => 'field' %>
</div>

<%= submit_tag 'Create Account', :class => 'submit' %>
<%= link_to_remote 'Cancel', :url => { :action => 'destroy', :id => 'new-account' } %>
<% end -%>
